package org.csu.mybigpro.DTO;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GetThreadsRspVO {

    private int total;//帖子总数
    private List<GetThread> threads;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class GetThread {
        private Long id;
        private String title;
        private Long authorId;
        private String content;
        private String authorName;
        private String authorAvatar;    //作者头像url
        private Integer replyCount;
        private Integer viewCount;
        private LocalDateTime createdAt;
        private LocalDateTime lastReplyAt;
        private Boolean isPinned;

    }

}
